{extend name='main'}

{block name="button"}

{if auth("admin/log/del")}
<button data-action='{:url("del")}' data-rule="id#{key}" data-confirm="确定要删除日志吗？" class='layui-btn layui-btn-sm layui-btn-primary'>删除日志</button>
{/if}

{/block}

{block name="content"}
<table class="layui-table" lay-skin="line">
    <caption class="margin-bottom-10 text-left">{include file='log/index_search'}</caption>
    {notempty name='list'}
    <thead>
    <tr>
        <th class='list-table-check-td think-checkbox'>
            <input data-auto-none data-check-target='.list-check-box' type='checkbox'>
        </th>
        <th class='text-left nowrap'>操作账号</th>
        <th class='text-left nowrap'>权限节点</th>
        <th class='text-left nowrap'>操作行为</th>
        <th class='text-left nowrap'>操作内容</th>
        <th class='text-left nowrap'>操作位置</th>
        <th class='text-left nowrap'>操作时间</th>
    </tr>
    </thead>
    <tbody>
    <!--{foreach $list as $key=>$vo}-->
    <tr>
        <td class='list-table-check-td think-checkbox'>
            <input class="list-check-box" value='{$vo.id}' type='checkbox'>
        </td>
        <td class='text-left nowrap'>{$vo.username}</td>
        <td class='text-left nowrap'>{$vo.node}</td>
        <td class='text-left nowrap'>{$vo.action}</td>
        <td class='text-left nowrap'>{$vo.content}</td>
        <td class='text-left nowrap'>{$vo.isp|default=$vo.geoip}</td>
        <td class='text-left nowrap'>{$vo.create_at|format_datetime}</td>
    </tr>
    <!--{/foreach}-->
    </tbody>
    {/notempty}
</table>

{empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}

{/block}